e5d8ee120c7f19f9477eb72608824d665d1d483d,grails-web/src/main/groovy/org/codehaus/groovy/grails/web/binding/GrailsDataBinder.java,GrailsDataBinder,registerCustomEditors,#ServletContext#PropertyEditorRegistry#,170

Before Change


            return;
        }

        Map<String, PropertyEditorRegistrar> editors = context.getBeansOfType(PropertyEditorRegistrar.class);
        for (PropertyEditorRegistrar editorRegistrar : editors.values()) {
            editorRegistrar.registerCustomEditors(registry);
        }

After Change


        }

        @SuppressWarnings("unchecked")
        Map<String, PropertyEditorRegistrar> editors = (Map<String, PropertyEditorRegistrar>)servletContext.getAttribute(PROPERTY_EDITOR_REGISTRARS);
        if(editors==null) {
            editors = context.getBeansOfType(PropertyEditorRegistrar.class);
            if(!Environment.isDevelopmentMode()) {
                servletContext.setAttribute(PROPERTY_EDITOR_REGISTRARS, editors);
            }
        }
        for (PropertyEditorRegistrar editorRegistrar : editors.values()) {